﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model.Linqtosql;
namespace HealthSystem
{
    public partial class notice : System.Web.UI.Page
    {
        DataDataContext data = LinqFactory.CreateInstance();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                String id = Request["id"];
                if (!string.IsNullOrEmpty(id))
                {
                    var notice= data.HW_Notice.Where(p => p.id == id).FirstOrDefault();
                    if (notice != null)
                    {
                        this.headtxt.InnerHtml = notice.NoticeTiltle;
                        this.contenttxt.InnerHtml = notice.NoticeContent;
                    }
                }
            }
        }
    }
}